﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace Dev101.Web.Controllers
{
    public class HomeController : Controller
    {
        // GET: Home
        Dev101.Web.Models.Dev101Model dev101Model;
        protected override void Initialize(System.Web.Routing.RequestContext requestContext)
        {
            base.Initialize(requestContext);
            dev101Model = new Models.Dev101Model(requestContext);
        }
        public ActionResult Index()
        {
            dev101Model.GetTagContainer();
            return View(dev101Model);
        }
        [HttpPost]
        public JsonResult GetTrainingItemsByTagId(string tagId)
        {
            return Json(dev101Model);
        }
    }
}